<?php

namespace App\Api\Logic\Validate;

class TestValidate extends BaseValidate
{
    protected $rule = [
        'username'=>'required|exists_data:admin,username,id',
        'password'=>'required'
    ];


    protected $message = [
        'username.required'=>'请填写账号',
        'username.exists_data'=>'账号不存在',
        'password.required'=>'请填写密码'
    ];


    protected $scene = [
        'login'=>'username,password'
    ];

}
